import Vue from 'vue'
import Vuex from 'vuex'
 
Vue.use(Vuex);
//导入模块

import init from './modules/init.js'                // 首页
import goods from './modules/goods.js'
import sellers from './modules/sellers.js'
import user from './modules/user.js'
import order from './modules/order.js'
import address from './modules/address.js'
import member from './modules/member.js'
import cart from './modules/cart.js'
import activity from './modules/activity.js'
import game from './modules/game.js'
import task from './modules/task.js'

const store = new Vuex.Store({
	modules: {
			init,
			goods,
			sellers,
			user,
			order,
			address,
			member,
			cart,
			activity,
			game,
			task
	}
})

export default store